const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    port: 8001,
    headers: {
      "Access-Control-Allow-Origin": "*"  // 允许跨域
    }
  },
  configureWebpack: {
    output: {
      library: 'child-vue3',
      libraryTarget: 'umd', // 打包为umd格式，兼容多种模块化规范
    }
  }
})
